//-/////////////////////////////////////
//-  个人中心通用内容
//-/////////////////////////////////////
mixin mainContent(leftTitle, rightTitle, isSubmission)
  if !isSubmission
    .main-content.clearfix
      .left-content
        .person-tab-left
          each value, index in leftTitle
            a.tab-box(class="#{value.selected ? 'selected' : ''}", href="个人中心-#{value.href ? value.href : value.name}.html")
              .tab-number
                span #{value.number}
                if value.newNumber
                  .tab-new-number #{value.newNumber}
              .tab-name #{value.name}
        //- 插入左边内容
        if block
          block
      .right-content
        .person-tab-right
          each value, index in rightTitle
            a.tab-box(href="个人中心-#{value.href ? value.href : value.name}.html")
              .tab-number
                span #{value.number}
                if value.newNumber
                  .tab-new-number #{value.newNumber}
              .tab-name #{value.name}
        .banner-right
          img(src='#{images}person-right-banner.jpg')
        .right-title · 众测 ·
        #carousel.carousel
          .carousel-box
            .carousel-content.clearfix
              a.box: img(src='#{images}person-right-banner-1.jpg')
              a.box: img(src='#{images}person-right-banner-1.jpg')
              a.box: img(src='#{images}person-right-banner-1.jpg')
              a.box: img(src='#{images}person-right-banner-1.jpg')
          .carousel-controller
            .control-btn.selected
            .control-btn
            .control-btn
            .control-btn
        include inlineCarouselScript
        .right-title · 达人榜 ·
        .rank
          .rank-content
            .sign
            each value, index in [0, 1, 2, 3, 4]
              a.items(href="#")
                img.little-head(src='#{images}person-little-head.png')
                .info
                  .name 团子
                  .like
                    .icon-like.like-btn 2321
                    .icon-like.collect-btn 3212
  else
    .main-content.clearfix
      .left-content
        //- 插入左边内容
        if block
          block
      .right-content
        .banner-right
          img(src='#{images}person-right-banner.jpg')
        .right-title · 众测 ·
        #carousel.carousel
          .carousel-box
            .carousel-content.clearfix
              a.box: img(src='#{images}person-right-banner-1.jpg')
              a.box: img(src='#{images}person-right-banner-1.jpg')
              a.box: img(src='#{images}person-right-banner-1.jpg')
              a.box: img(src='#{images}person-right-banner-1.jpg')
          .carousel-controller
            .control-btn.selected
            .control-btn
            .control-btn
            .control-btn
        include inlineCarouselScript
        .right-title · 达人榜 ·
        .rank
          .rank-content
            .sign
            each value, index in [0, 1, 2, 3, 4]
              .items
                img.little-head(src='#{images}person-little-head.png')
                .info
                  .name 团子
                  .like
                    .icon-like.like-btn 2321
                    .icon-like.collect-btn 3212
